// components/activity-helper-item/index.js
import componentBehavior from '../../../behaviors/component';
import { COMPONENT_OPTIONS } from '../../../constants/common';
import { getPicFullPath } from '../../../common/utils';

Component({
    behaviors: [componentBehavior],
    options: {
        ...COMPONENT_OPTIONS,
    },
    properties: {
        statsInfo: {
            type: Object,
            value: {},
            observer: function (val) {
                val && this.setData({
                    avatarUrl: getPicFullPath(val.pic),
                });
            },
        },
    },
    data: {
        avatarUrl: '',
    },
    methods: {
    }
})
